//
//  Man.m
//  07-ARC代码编写
//
//  Created by dllo on 16/7/12.
//  Copyright © 2016年 高雅馨. All rights reserved.
//

#import "Man.h"

@implementation Man
// 当初始化用_
// self.应用 = 左边
// 其他情况下都可以直接使用_
- (instancetype)init {
    self = [super init];
    if (self) {
        self.objc = [NSObject new];
    }
    return self;
}
//ARC缺少了if判断
- (void)setObjc:(NSObject *)objc {
    _objc = objc;
}
- (void)setString:(NSString *)string {
    _string = [string copy];
}
- (void)setCount:(NSInteger)count {
    _count = count;
}
- (void)setDelegate:(id<NSObject>)delegate {
    _delegate = delegate;
}
//ARC下可以写dealloc
- (void)dealloc {
    // 不能写[super dealloc]
}
@end
